//
//  KKDatePicker.h
//  SHDoctor
//
//  Created by Mac mini on 15/10/12.
//  Copyright © 2015年 ShiHeng. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^KKDatePickerCancelBlock)(void);
typedef void(^KKDatePickerSaveBlock)(NSDate * __nonnull selectedDate);

@interface KKDatePicker : UIWindow

- (nullable instancetype)initWithPickerMode:(UIDatePickerMode )pickerMode;

@property (nullable, nonatomic, copy) KKDatePickerCancelBlock cancleBlock;
@property (nullable, nonatomic, copy) KKDatePickerSaveBlock saveBlock;

@property (nullable, nonatomic, readonly) UIDatePicker *picker;


- (void)show;

- (void)showWithTitle:(NSString* __nullable)title;

- (void)cancel;

@end


